package com.lin.cms.domain;

import java.io.Serializable;

public class FriendlinkCtg implements Serializable {

	private static final long serialVersionUID = 1L;

	private int friendlinkctgId;

	private int siteId;

	private String friendlinkctgName;

	private int priority;

	public FriendlinkCtg() {
	}

	public int getFriendlinkctgId() {
		return friendlinkctgId;
	}

	public void setFriendlinkctgId(int friendlinkctgId) {
		this.friendlinkctgId = friendlinkctgId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public String getFriendlinkctgName() {
		return friendlinkctgName;
	}

	public void setFriendlinkctgName(String friendlinkctgName) {
		this.friendlinkctgName = friendlinkctgName;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + friendlinkctgId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final FriendlinkCtg other = (FriendlinkCtg) obj;
		if (friendlinkctgId != other.friendlinkctgId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"friendlinkctgId=" + "'" + friendlinkctgId + "'" + 
			")";
	}
	
}
